#!/bin/bash

while read line  
do
	for WORD in $line 
	do
: <<END
		if [ $WORD -eq "z*" ] -o [$WORD -eq "y*" ];then
			echo $WORD;
		fi
END
		case $WORD in
			z*)echo $WORD;;
			y*)echo $WORD;;
			*):;;
		esac
	done
done<./words.txt

		
